<template>
	<view>
		<cu-custom :isBack="true" bgColor="bg-blue">
			<block slot="content">生产消息</block>
			<template slot="backText">
				<text class="cuIcon-back" @tap="beforePage"></text>
			</template>
		</cu-custom>
		
		<view class="padding-tb-20">
			<view class="bg-white margin-b-30" v-for="(item, index) in list" :key="index">
				<view class="u-main-title solid-bottom">
					<text class="u-font-weight font-size34">{{item.team}}{{item.shift}}</text>
					<text class="font-size22 u-font-weight4">{{item.time}}</text>
				</view>
				<view class="padding2030 flex align-center dashed-bottom">
					<image src="../../static/img/zha.png" mode="widthFix" class="detail-img"></image>
					<view class="">
						<view class="font-size40 u-font-weight">{{item.rollingInterval}}</view>
						<view class="u-font-weight6 font-size24">轧制间隔(min)</view>
					</view>
					<view class="" style="margin-left: 60upx;">
						<view class="font-size40 u-font-weight">{{item.yield}}</view>
						<view class="u-font-weight6 font-size24">产量(t)</view>
					</view>
					<view class="" style="margin-left: 60upx;">
						<view class="font-size40 u-font-weight">{{item.rollNumber}}</view>
						<view class="u-font-weight6 font-size24">轧制块数(块)</view>
					</view>
				</view>
				<view class="padding2030 flex font-size24 justify-between align-center"  @tap="handleDetail(item.time)">
					<view class="u-font-weight6 searchBtn">更多详情</view>
					<text class="ph-gengduoxiangqing"></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import { post } from '@/lib/Util.js'
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			this.getInfo()
		},
		methods: {
			async getInfo() {
				let res = await post('/news/ProductionSummaryMessage/TeamStatistics')
				if(res.code == 0) {
					this.list = res.data
				}
			},
			beforePage() {
				uni.navigateBack({
					delta: 1
				});
			},
			handleDetail(val) {
				uni.navigateTo({
					url: './columnDetail?param='+ val 
					
				})
			}
		}
	}
</script>

<style>
	.detail-img {
		width: 66upx;
		height: 67upx;
		margin-right: 10upx;
	}
	.searchBtn {
		width: 128upx;
		height: 40upx;
		opacity: 1;
		background: #ffffff;
		border-radius: 7upx;
		text-align: center;
	}
</style>
